﻿using Surpass.Model.Dto.RequestParamsDto;
using Surpass.Model.Dto.ResponseDto.ResponseModel.PermissionModel;
using Surpass.Model.Dto.ResponseDto.ResponseModel.ResultModel;
using Surpass.Model.SysDomain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Surpass.Repository.IRepository
{
    public interface ISysRoleRepository : IDataBase
    {

        Task<ResponseModel<List<SysRole>>> GetRoleList();

        Task<PageResponse<PermissionListDto>> GetPermissionListAsync(long roleId);

        Task<ResponseModel<bool>> AddRolePermission(PermissionDto  permissionDto);
        Task<ResponseModel<bool>> DeleteRole(long roleId);

    }
}
